package BankDemo;

public class Testbank {
    public static void main(String[] args) {
        Banks banks = new Banks();
        Thread accountant,cashier;
        banks.setMoney(300);

        accountant = new Thread(banks,"会计");
        cashier = new Thread(banks,"出纳");

        accountant.start();
        cashier.start();

    }
}
